package com.lagou.zookeeper.controller;

import com.lagou.zookeeper.model.Resume;
import com.lagou.zookeeper.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/resume")
public class ResumeController {

    @Autowired
    private ResumeService resumeService;

    @RequestMapping("list")
    public List<Resume> list() {
        return resumeService.list();
    }
}
